#@layout()
<script>
    $("#platformincome-add").validate({
        rules:{
                "platformincome.wh_id":{
                    required:true
                },
                "platformincome.money":{
                    required:true
                },
                "platformincome.status":{
                    required:true
                }
        },
        messages:{

                "platformincome.wh_id":{
                required:"请输入提现网红ID..."
                },
                "platformincome.money":{
                required:"请输入平台收入..."
                },
                "platformincome.status":{
                required:"请输入状态值..."
                }
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
        var config = {
        "url":"/admin/platformincome/doAdd",
        data:$("#platformincome-add").serialize(),
        "method":"POST"
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
        }
    });
</script>
#define main()
     <form class="form form-horizontal" id="platformincome-add">
        #include("platformincome-form.html")
     </form>
#end